home *** CD-ROM | disk | FTP | other *** search
/ Maclife 39 / MACLIFE39.ISO.7z / MACLIFE39.ISO / FreeWare200 / バックアップ / Synchronize! Folder.sit / Synchronize! Folder / Synchronize!.rsrc / TEXT_20062_AppleScript Support.txt < prev    next >
Text File  |  1998-03-17  |  1KB  |  28 lines

  1. Synchronize! can be controlled with AppleScript. Synchronization documents can be opened and synchronization started with simple script commands. AppleScript applets can be run when a synchronization completes.
  2.  
  3. Settings within synchronization documents, and preferences, cannot currently be changed with AppleScript. Synchronize! responds to AppleScript commands, but it is not recordable.
  4.  
  5. The following scripting examples show what you can do with Synchronize! and AppleScript. The text which follows can be entered directly as a script.
  6.  
  7. -- Open Synchronize!, just as if it were double-clicked.
  8. tell application "Synchronize!" to run 
  9.  
  10. tell application "Synchronize!"
  11.     -- Open a synchronization document
  12.     open file "Sync PowerBook" 
  13.     -- If the Start Option "Start synchronization when the
  14.     -- document is opened" is checked,
  15.     -- the synchronization will be automatically started.
  16.  
  17.     -- Start a synchronization
  18.     sync file "HD:Sync Big Disk" 
  19.     -- Synchronize! will automatically open the 
  20.     -- specified document (if it's not already open)
  21.     -- and start its synchronization
  22.     
  23.     -- Quit Synchronize!
  24.     quit
  25.  
  26. end tell
  27.  
  28. To take an AppleScript action when a synchronization completes, use the "Open  a file" option in the Completion Options. This feature runs any AppleScript which has been saved as an application, or any other application, when the synchronization is complete.